Name:       samurai
Version:    1.2
Release:    1
Summary:    Ninja build tool implementation written in C
License:    Apache MIT
Provides:   ninja

Source: https://github.com/michaelforney/samurai/releases/download/1.2/samurai-1.2.tar.gz

%description
Ninja build tool implementation written in C

%prep
%setup -q

%build
make CFLAGS="%{optflags}"

%install
rm -rf $RPM_BUILD_ROOT
make PREFIX=/usr DESTDIR=%{buildroot} install
ln -s samu %{buildroot}/usr/bin/ninja

%files
%license LICENSE
/usr/bin/samu
/usr/bin/ninja
%{_mandir}/man1/*

%changelog
# let's skip this for now
